package cn.edu.scau.cmi.wuzewei.hibernate.domain;

import java.util.HashSet;
import java.util.Set;

public class Teacher {
	private Long id;
	private String name;
	@SuppressWarnings("rawtypes")
	private Set students = new HashSet(0);
	
	@Override
	public String toString() {
		return id + "";
	}

	public Teacher() {
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@SuppressWarnings("rawtypes")
	public Set getStudents() {
		return students;
	}

	@SuppressWarnings("rawtypes")
	public void setStudents(Set students) {
		this.students = students;
	}
	
	
}
